package IMIC.DOTHEVINH.OOP.EXERCISES.LEVEL02.EXP2;

import javax.print.attribute.standard.Sides;

public class Models {

	public double Area(OctagonEntity octagonEntity) {
		double area = (2 + 4 / Math.sqrt(2)) * octagonEntity.getSide() * octagonEntity.getSide();
		return area;
	}

	public double Perimeter(OctagonEntity octagonEntity) {
		double perimeter = 8 * octagonEntity.getSide();
		return perimeter;

	}

}
